import request from '@/utils/request'

export default {
     //1. 添加小节
     addVideo(video) {
        return request({
            url: `/eduService/video/addVideo`,
            method: 'post',
            data: video
        })
    },
    //2. 修改小节
    updateVideo(video) {
        return request({
            url: `/eduService/video/updateVideo`,
            method: 'post',
            data: video
        })
    },
    //3. 删除小节
    deleteVideo(id) {
        return request({
            url: `/eduService/video/${id}`,
            method: 'delete'
        })
    },
    //4. 获取对应小节
    getVideo(id) {
        return request({
            url: `/eduService/video/getVideo/${id}`,
            method: 'get'
        })
    },
    //5. 删除视频
    deleteAliyunVod(id) {
        return request({
            url: `/eduvod/video/removeAlyVideo/${id}`,
            method: 'delete'
        })
    }
}